From a5e20c5ffcf61173a2e0e6c7dc63518342ee396e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 17 Mar 2018 11:09:33 +0100 Subject: [PATCH] layout: remove map implementation gtk_widget_real_map already maps all the child widgets. --- gtk/gtklayout.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 52639ccd36..60e132714f 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -113,7 +113,6 @@ static void gtk_layout_set_property (GObject *object, const GValue *value, GParamSpec *pspec); static void gtk_layout_finalize (GObject *object); -static void gtk_layout_map (GtkWidget *widget); static void gtk_layout_measure (GtkWidget *widget, GtkOrientation orientation, int for_size, @@ -555,7 +554,6 @@ gtk_layout_class_init (GtkLayoutClass *class) G_MAXINT, 100, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY)); - widget_class->map = gtk_layout_map; widget_class->measure = gtk_layout_measure; widget_class->size_allocate = gtk_layout_size_allocate; @@ -720,29 +718,6 @@ gtk_layout_init (GtkLayout *layout) priv->freeze_count = 0; } -static void -gtk_layout_map (GtkWidget *widget) -{ - GtkLayout *layout = GTK_LAYOUT (widget); - GtkLayoutPrivate *priv = layout->priv; - GList *tmp_list; - - GTK_WIDGET_CLASS (gtk_layout_parent_class)->map (widget); - - tmp_list = priv->children; - while (tmp_list) - { - GtkLayoutChild *child = tmp_list->data; - tmp_list = tmp_list->next; - - if (gtk_widget_get_visible (child->widget)) - { - if (!gtk_widget_get_mapped (child->widget)) - gtk_widget_map (child->widget); - } - } -} - static void gtk_layout_measure (GtkWidget *widget, GtkOrientation orientation, -- 2.30.2